package lab01;

/**
 * Created by mac on 2017/10/18.
 */
public class Test11 {
    public static void main(String[] args) {
        int i;
        int j;
        int n=0;
        for (i = 2; i< 100; i++) {
            for (j = 2; j <= i/2; j++) {
                if (i % j == 0) {
                    break;
                }
            }if (j > i/2) {
                n++;
                System.out.print(i+"   ");
                if (n%5==0)
                    System.out.println();
            }
        }
    }
}
